/**
 * Copyright &copy; 2012-2014 <a href="https://github.cn.apestar">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.common.systemannouncement.entity;

import org.hibernate.validator.constraints.Length;

import cn.apestar.common.persistence.DataEntity;

/**
 * 系统公告Entity
 * @author yudw
 * @version 2016-08-20
 */
public class SystemAnnouncement extends DataEntity<SystemAnnouncement> {

    private static final long serialVersionUID = 1L;

    private String content; // 公告内容

    private String redirectUrl; // 跳转URL

    private String createUserName; // 创建用户名称，冗余存储，方便查询

    private Long institutionId; // 企业ID

    public SystemAnnouncement() {
        super();
    }

    public SystemAnnouncement(String id) {
        super(id);
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    @Length(min = 0, max = 100, message = "创建用户名称，冗余存储，方便查询长度必须介于 0 和 100 之间")
    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Long getInstitutionId() {
        return institutionId;
    }

    public void setInstitutionId(Long institutionId) {
        this.institutionId = institutionId;
    }

}